$def with (file_meta, other_versions)

$:render.header(file_meta.file.name)

$for dir in navigate_backwards(file_meta.file.path):
    <a href="/host/$file_meta.file.host.ip/explorer?directory=$dir">$dir</a><br />

<h1>$file_meta.file.name</h1>

<ul id="file_other_versions">
    $for old_file in other_versions:
        <li>
            $:link_from_file_meta(old_file) - $:download_file_link(old_file)
        </li>
</ul>

$if file_meta.mime_type == 'image/png' or file_meta.mime_type == 'image/gif':
    <a href="javascript:void(0);" class="file-detail-display-image" id="$file_meta.hash" />Display image</a>
    <div id="file-detail-display-image-placeholder"></div>
$else:
    $:highlight_contents(file_meta)